import request from '@/utils/request'

export function getSenderList(query) {
  return request({
    url: '/logistics/sender/getList',
    method: 'post',
    data: query
  })
}
export function getSenderUseable(query) {
  return request({
    url: '/logistics/sender/getAvailable',
    method: 'post',
    data: query
  })
}

export function getSenderDetail(id) {
  return request({
    url: '/logistics/sender/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveSender(id) {
  return request({
    url: '/logistics/sender/save',
    method: 'post',
    data: id
  })
}

export function removeSenderByID(id) {
  return request({
    url: '/logistics/sender/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusBySenderID(formdata) {
  return request({
    url: '/logistics/sender/change-status',
    method: 'post',
    data: formdata
  })
}

